<c:if test="true"
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:nxu="http://nuxeo.org/nxweb/util"
  xmlns:nxh="http://nuxeo.org/nxweb/html"
  xmlns:a4j="http://richfaces.org/a4j"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:c="http://java.sun.com/jstl/core">

<c:if test="#{not empty widgetProperty_maxActionsNumber and widgetProperty_actions.size > widgetProperty_maxActionsNumber}">
  <ul class="actionList" id="#{idPrefix}dropDownMenu">
    <li class="dropDownMenu button dropdown">
      <h:outputText value="#{empty widgetProperty_moreMenuLabel ? messages['label.summary.actions.more'] : widgetProperty_moreMenuLabel}" />
      <ul class="actionSubList">
        <nxu:repeat var="action" begin="#{widgetProperty_maxActionsNumber}"
          end="#{widgetProperty_actions.size-1}" step="1" items="#{widgetProperty_actions}">
          <li>
            <ui:include src="/incl/action/action_template.xhtml">
              <ui:param name="actionsDisplay" value="#{nxu:test(widgetProperty_actionsDisplay == 'buttons' or widgetProperty_actionsDisplay == 'icons', 'icons_links', widgetProperty_actionsDisplay)}" />
              <ui:param name="ajaxReRender" value="#{nxu:joinRender(ajaxReRender, widgetProperty_ajaxReRender)}" />
              <ui:param name="addForm" value="#{widgetProperty_addForm}" />
              <ui:param name="useAjaxForm" value="#{widgetProperty_useAjaxForm}" />
              <ui:param name="formStyleClass" value="subWidgetForm" />
              <ui:param name="mode" value="#{widget.mode}" />
              <ui:param name="disableFiltered" value="#{widgetProperty_disableFiltered}" />
            </ui:include>
          </li>
        </nxu:repeat>
      </ul>
    </li>
  </ul>

  <h:outputScript target="#{pageJsTarget}">
    jQuery(document).ready(function() {
      jQuery("##{idPrefix}dropDownMenu").dropdown();
    });
  </h:outputScript>

</c:if>

</c:if>